<template>
  <div>
    <!-- 签到日期底部 -->
    <div class="yiBox">
      <ul>
        <li class="yi" v-for="(item, index) in yiListTo" :key="index">
          <img :src="item.imgUrl" alt="" />
          <p>{{ item.mingCheng }}</p>
          <button>选择好礼</button>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      yiList: "../../../../static/images/wallet&signin/wallet13.png",
      yiListTo: [
        {
          imgUrl: "../../../../static/images/wallet&signin/wallet13.png",
          mingCheng: "H941素雅色牙刷杯",
        },
        {
          imgUrl: "../../../../static/images/wallet&signin/wallet11.png",
          mingCheng: "干湿两用防滑衣架",
        },
        {
          imgUrl: "../../../../static/images/wallet&signin/wallet09.png",
          mingCheng: "双层洗漱口杯家用",
        },
        {
          imgUrl: "../../../../static/images/wallet&signin/wallet12.png",
          mingCheng: "H941素雅色刷牙杯",
        },
        {
          imgUrl: "../../../../static/images/wallet&signin/wallet10.png",
          mingCheng: "干湿两用防滑衣架",
        },
        {
          imgUrl: "../../../../static/images/wallet&signin/wallet08.png",
          mingCheng: "双层洗漱口杯家用",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.yiBox {
  width: 90%;
  margin: 0px auto;
  // border: 1px solid skyblue;
}
ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;

  .yi {
    margin-top: 20px;
    width: 200px;
   

    // border: 1px solid red;
    img {
      width: 100%;
    }
    p {
      font-size: 26px;
       overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    }
    button {
      width: 150px;
      font-size: 24px;
      border-radius: 25px;
    }
  }
}
</style>